#ifndef InstanceTcpSerProc_H
#define InstanceTcpSerProc_H

#include <QtNetwork>
#include <QObject>

class InstanceTcpSerProc : public  QObject
{
    Q_OBJECT
public:
    InstanceTcpSerProc();
    ~InstanceTcpSerProc();
    static InstanceTcpSerProc* instance()
    {
        static InstanceTcpSerProc instance;
        return &instance;
    }
    bool DoStart(QString ChoiceIp, quint16 LocalPort);

    void DoStop();

public slots:
    void AcceptConnect();
private:
    QTcpServer *InstanceTcpServer;
    bool IsSerStart;
    QString ForwardIp;
    quint16 ForwardPort;

#define sInstanceTcpSerProc InstanceTcpSerProc::instance()
};

#endif
